package xmlcollabclient.data;

import java.util.ArrayList;
import java.util.List;
import javax.swing.JCheckBox;

/**
 *
 * @author Sasa
 */
class Tasks {

    public  List<Task> getTasks(Integer start) throws Exception {

        List<Task> tasks = new ArrayList<Task>();

        // create 10 tasks
        for(Integer i = start; i<10; i++) {
            Task task = new Task();
            task.id = i;

            task.checkbox = new JCheckBox();
            task.assigment = "Test task " + i;
            task.checkbox.setText(task.assigment);

            tasks.add(task);
        }

        return tasks;
    }
}
